import service from '@/utils/request'
// @Tags ScamEvent
// @Summary 创建诈骗事件
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ScamEvent true "创建诈骗事件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /SE/createScamEvent [post]
export const createScamEvent = (data) => {
  return service({
    url: '/SE/createScamEvent',
    method: 'post',
    data
  })
}

// @Tags ScamEvent
// @Summary 删除诈骗事件
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ScamEvent true "删除诈骗事件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /SE/deleteScamEvent [delete]
export const deleteScamEvent = (params) => {
  return service({
    url: '/SE/deleteScamEvent',
    method: 'delete',
    params
  })
}

// @Tags ScamEvent
// @Summary 批量删除诈骗事件
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除诈骗事件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /SE/deleteScamEvent [delete]
export const deleteScamEventByIds = (params) => {
  return service({
    url: '/SE/deleteScamEventByIds',
    method: 'delete',
    params
  })
}

// @Tags ScamEvent
// @Summary 更新诈骗事件
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.ScamEvent true "更新诈骗事件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /SE/updateScamEvent [put]
export const updateScamEvent = (data) => {
  return service({
    url: '/SE/updateScamEvent',
    method: 'put',
    data
  })
}

// @Tags ScamEvent
// @Summary 用id查询诈骗事件
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.ScamEvent true "用id查询诈骗事件"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /SE/findScamEvent [get]
export const findScamEvent = (params) => {
  return service({
    url: '/SE/findScamEvent',
    method: 'get',
    params
  })
}

// @Tags ScamEvent
// @Summary 分页获取诈骗事件列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取诈骗事件列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /SE/getScamEventList [get]
export const getScamEventList = (params) => {
  return service({
    url: '/SE/getScamEventList',
    method: 'get',
    params
  })
}

// @Tags ScamEvent
// @Summary 不需要鉴权的诈骗事件接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.ScamEventSearch true "分页获取诈骗事件列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /SE/getScamEventPublic [get]
export const getScamEventPublic = () => {
  return service({
    url: '/SE/getScamEventPublic',
    method: 'get',
  })
}
